//定义了一个名为Employee的类，它继承自Person类
public class Employee extends Person {
//    私有成员变量salary，代表员工的工资
    private double salary;

    public Employee(String name, int age, double salary) {
        super(name, age);
        this.salary = salary;
    }

//    用于获取Employee对象的工资。当调用此方法时，它会返回当前对象的salary值
    public double getSalary() {
        return salary;
    }
}